package com.sayai.work.tools.overtimes;

import com.deepoove.poi.el.Name;

public class WorkerData {

    public WorkerData()
    {

    }

    public WorkerData(String names,String things)
    {
        this.names = names;
        this.things = things;
    }

    public WorkerData(String names,String things,String datetime)
    {
        this.names = names;
        this.things = things;
        this.datetime = datetime;
    }
    public WorkerData(String names,String things,String duration,String itype)
    {
        this.names = names;
        this.things = things;
        this.datetime = duration;
        if(itype.equals("晚九点"))
        {
            this.duration = " 3 时";
            this.date2date = this.datetime + " 17:00 - " + this.datetime + " 21:00";
        } else if(itype.equals("晚十二点")){
            this.duration = " 3 时";
            this.date2date = this.datetime + " 21:00 - " + this.datetime + " 24:00";
        } else if(itype.equals("周末")){
            this.duration = " 8 时";
            this.date2date = this.datetime + " 9:00 - " + this.datetime + " 17:00";
        }else{
            this.duration = "未知类型";
            this.date2date = "未知类型";
        }
    }

    @Name("names")
    private String names;

    @Name("datetime")
    private String datetime;
    @Name("date2date")
    private String date2date;
    @Name("duration")
    private String duration;
    @Name("things")
    private String things;

    public String getNames() {
        return names;
    }

    public void setNames(String names) {
        this.names = names;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public String getDate2date() {
        return date2date;
    }

    public void setDate2date(String date2date) {
        this.date2date = date2date;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getThings() {
        return things;
    }

    public void setThings(String things) {
        this.things = things;
    }
}
